<?php 
$front = Zend_Controller_Front::getInstance();
$req = $front->getRequest()->getParams();
$module = "";
$controller = "";
$action = "";
if($req['module'] == "")
{
    $module = "default";
}else{
    $module = $req["module"];
}
if($req['controller'] == "")
{
    $controller = "index";
}else{
    $controller = $req["controller"];
}
if($req['action'] == "")
{
    $action = "index";
}else{
    $action = $req["action"];
}

$url = "/".$module."/".$controller."/".$action;
?>
<div class="rt-fusionmenu">
    <div class="nopill">
        <div class="rt-menubar">
            <ul class="menutop level1 " >
                <li class="item101 <?=($url == "/default/index/index"?"active":'') ?> root" >
                    <a class="orphan item bullet" href="/default/index/index"  >
                        <span>
                        Trang chủ
                        </span>
                    </a>
                </li>
                <li class="item131 <?=($url == "/tour/search/index"?"active":'') ?> root" >
                    <a class="daddy item bullet" href="/tour/search/index" >
                        <span>
                        Tìm tour
                        </span>
                    </a>
                </li>
                <li class="item114 <?=($url == "/contact/index/index"?"active":'') ?> root" >
                    <a class="orphan item bullet" href="/contact/index/index" >
                        <span>
                            Liên hệ 
                        </span>
                    </a>
                </li>
                <?php
                $auth = Zend_Auth::getInstance();
                if(isset($auth->getIdentity()->ID_U)){ ?>
                <li class="item114 <?=($url == "/tour/index/orderlist"?"active":'') ?> root" >
                    <a class="orphan item bullet" href="/tour/index/orderlist" >
                        <span>
                            Thành viên
                        </span>
                    </a>
                </li>
                <li class="item114 root" >
                    <a class="orphan item bullet" href="/auth/logout/index" >
                        <span>
                            Đăng xuất
                        </span>
                    </a>
                </li>
                <? }else{ ?>
                <li class="item114 root" >
                    <a class="orphan item bullet" href="/auth/login/index" >
                        <span>
                            Đăng nhập
                        </span>
                    </a>
                </li>
                <? } ?>
            </ul>
        </div>
    </div>
</div>